<?php
require_once "repeat.class.php";


$startTime=date("Y-m-d H:i:s");
//$startTime="2017-7-31 17:50:50";
//print_r($d);
$temp=time();
$mail=[
    "Subject" => "测$temp",
    "Body" => "<h1>测试</h1>",
    "addAddress" => "czrll2@163.com",
    "addAttachment"=>'../miku.jpg,../gundam.jpg'

];
//$startTime ,$arr,$sendInterval=60,$times=5)
$s = new repeat($startTime,$mail,15,10);
$s->start();



//function sendMail($arr){
//    ignore_user_abort(0);
//    set_time_limit(0);
//
//    require_once "mySendMail.php";
//    $mail = new MySendMail();
//    $mail->sendMail(); //发送
//
////    $mail->setReceiver("czrll2@163.com"); //设置收件人，多个收件人，调用多次
//// $mail->setCc("XXXX"); //设置抄送，多个抄送，调用多次
//// $mail->setBcc("XXXXX"); //设置秘密抄送，多个秘密抄送，调用多次
////    $mail->addAttachment("../miku.jpg"); //添加附件，多个附件，调用多次
//
//
//
//
//
//
//}